package com.amanda.blog.dao;

import com.amanda.blog.entity.BlogTagRelation;
import org.apache.ibatis.annotations.Param;
import java.util.List;

public interface BlogTagRelationDao {
    int deleteByPrimaryKey(Long relationId);
    int insert(BlogTagRelation record);
    int insertSelective(BlogTagRelation record);
    BlogTagRelation selectByPrimaryKey(Long relationId);
    BlogTagRelation selectByBlogIdAndTagId(@Param("blogId") Long blogId, @Param("tagId") Integer tagId);
    List<Long> selectDistinctTagIds(Integer[] tagIds);
    int updateByPrimaryKeySelective(BlogTagRelation record);
    int updateByPrimaryKey(BlogTagRelation record);
    int batchInsert(@Param("relationList") List<BlogTagRelation> blogTagRelationList);
    int deleteByBlogId(Long blogId);
}